package com.xmy.study.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 帐号
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-08
 */
@TableName("per_student_account")
@ApiModel(value = "StudentAccount对象", description = "帐号")
public class StudentAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long schoolId;

    private Long studentId;

    @ApiModelProperty("学习姓名")
    private String studentName;

    @ApiModelProperty("0禁用，1正常，2试用")
    private Integer status;

    private String account;

    private String pwd;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("1学生，2教师")
    private Integer accountType;

    @ApiModelProperty("精品课所在班级id")
    private Long gradeId;

    @ApiModelProperty("班型id")
    private Long classTypeId;

    @ApiModelProperty("试用帐号的到期日期")
    private LocalDate tryOutEndDate;

    private Integer switchPk;

    @ApiModelProperty("1精品课学生自动生成，2手动添加")
    private Integer addType;

    private LocalDateTime createdAt;

    private Integer deleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }
    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }
    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
    public Integer getYearPart() {
        return yearPart;
    }

    public void setYearPart(Integer yearPart) {
        this.yearPart = yearPart;
    }
    public Integer getQuarterNum() {
        return quarterNum;
    }

    public void setQuarterNum(Integer quarterNum) {
        this.quarterNum = quarterNum;
    }
    public Integer getYearClassId() {
        return yearClassId;
    }

    public void setYearClassId(Integer yearClassId) {
        this.yearClassId = yearClassId;
    }
    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }
    public Long getGradeId() {
        return gradeId;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }
    public Long getClassTypeId() {
        return classTypeId;
    }

    public void setClassTypeId(Long classTypeId) {
        this.classTypeId = classTypeId;
    }
    public LocalDate getTryOutEndDate() {
        return tryOutEndDate;
    }

    public void setTryOutEndDate(LocalDate tryOutEndDate) {
        this.tryOutEndDate = tryOutEndDate;
    }
    public Integer getSwitchPk() {
        return switchPk;
    }

    public void setSwitchPk(Integer switchPk) {
        this.switchPk = switchPk;
    }
    public Integer getAddType() {
        return addType;
    }

    public void setAddType(Integer addType) {
        this.addType = addType;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "StudentAccount{" +
            "id=" + id +
            ", schoolId=" + schoolId +
            ", studentId=" + studentId +
            ", studentName=" + studentName +
            ", status=" + status +
            ", account=" + account +
            ", pwd=" + pwd +
            ", yearPart=" + yearPart +
            ", quarterNum=" + quarterNum +
            ", yearClassId=" + yearClassId +
            ", accountType=" + accountType +
            ", gradeId=" + gradeId +
            ", classTypeId=" + classTypeId +
            ", tryOutEndDate=" + tryOutEndDate +
            ", switchPk=" + switchPk +
            ", addType=" + addType +
            ", createdAt=" + createdAt +
            ", deleted=" + deleted +
        "}";
    }
}
